package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AhhcIntakeOutputRecordsMapper;
import com.ruoyi.system.domain.AhhcIntakeOutputRecords;
import com.ruoyi.system.service.IAhhcIntakeOutputRecordsService;

/**
 * 患者出入量记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-15
 */
@Service
public class AhhcIntakeOutputRecordsServiceImpl implements IAhhcIntakeOutputRecordsService 
{
    @Autowired
    private AhhcIntakeOutputRecordsMapper ahhcIntakeOutputRecordsMapper;

    /**
     * 查询患者出入量记录
     * 
     * @param recordId 患者出入量记录主键
     * @return 患者出入量记录
     */
    @Override
    public AhhcIntakeOutputRecords selectAhhcIntakeOutputRecordsByRecordId(String recordId)
    {
        return ahhcIntakeOutputRecordsMapper.selectAhhcIntakeOutputRecordsByRecordId(recordId);
    }

    /**
     * 查询患者出入量记录列表
     * 
     * @param ahhcIntakeOutputRecords 患者出入量记录
     * @return 患者出入量记录
     */
    @Override
    public List<AhhcIntakeOutputRecords> selectAhhcIntakeOutputRecordsList(AhhcIntakeOutputRecords ahhcIntakeOutputRecords)
    {
        return ahhcIntakeOutputRecordsMapper.selectAhhcIntakeOutputRecordsList(ahhcIntakeOutputRecords);
    }

    /**
     * 新增患者出入量记录
     * 
     * @param ahhcIntakeOutputRecords 患者出入量记录
     * @return 结果
     */
    @Override
    public int insertAhhcIntakeOutputRecords(AhhcIntakeOutputRecords ahhcIntakeOutputRecords)
    {
        return ahhcIntakeOutputRecordsMapper.insertAhhcIntakeOutputRecords(ahhcIntakeOutputRecords);
    }

    /**
     * 修改患者出入量记录
     * 
     * @param ahhcIntakeOutputRecords 患者出入量记录
     * @return 结果
     */
    @Override
    public int updateAhhcIntakeOutputRecords(AhhcIntakeOutputRecords ahhcIntakeOutputRecords)
    {
        return ahhcIntakeOutputRecordsMapper.updateAhhcIntakeOutputRecords(ahhcIntakeOutputRecords);
    }

    /**
     * 批量删除患者出入量记录
     * 
     * @param recordIds 需要删除的患者出入量记录主键
     * @return 结果
     */
    @Override
    public int deleteAhhcIntakeOutputRecordsByRecordIds(String[] recordIds)
    {
        return ahhcIntakeOutputRecordsMapper.deleteAhhcIntakeOutputRecordsByRecordIds(recordIds);
    }

    /**
     * 删除患者出入量记录信息
     * 
     * @param recordId 患者出入量记录主键
     * @return 结果
     */
    @Override
    public int deleteAhhcIntakeOutputRecordsByRecordId(String recordId)
    {
        return ahhcIntakeOutputRecordsMapper.deleteAhhcIntakeOutputRecordsByRecordId(recordId);
    }
}
